package com.androidcare;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;

public class Reinicio extends Service {
	
	public void onCreate(){
	}
	
	@Override
	public void onStart(Intent intet, int startId){
		Log.i("Reinicio","onStart");
		Intent inicio = new Intent(getBaseContext(), Inicio.class);
		inicio.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		startActivity(inicio);
		Log.i("","ACTUALIZACION INICIADA");
		stopSelf();
	}
	@Override
	public IBinder onBind(Intent intent) {
		// TODO Auto-generated method stub
		return null;
	}

}
